Ensure that icon value doesn't float if not present.
authorrobertl <robertl>
Sat, 2 Sep 2006 20:59:39 +0000 (20:59 +0000)
committerrobertl <robertl>
Sat, 2 Sep 2006 20:59:39 +0000 (20:59 +0000)
gpsutil.c

index 8e5e6c2bc9484b3642f291b4d5b432eb6dafe9bc..ee28e6cf40ac054931cea4e4b6fc11b4187ec2d3 100644 (file)
--- a/gpsutil.c
+++ b/gpsutil.c
@@ -64,6 +64,7 @@ data_read(void)
        char alttype;
        char icon[3];
        waypoint *wpt_tmp;
+       icon[0] = 0;
 
        /*
         * Make sure that all waypoints in single read have same